package c.c.a;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.os.IInterface;
import c.c.a.k1.b;

public final class f0 extends q0<m1> {

    public class a implements b<m1, String> {
        public a(f0 f0Var) {
        }

        public Object a(IBinder iBinder) {
            int i = c.c.a.m1.a.a;
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.asus.msa.SupplementaryDID.IDidAidlInterface");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof m1)) {
                return new c.c.a.m1.a.a(iBinder);
            }
            return (m1) queryLocalInterface;
        }

        public Object a(Object obj) {
            m1 m1Var = (m1) obj;
            if (m1Var == null) {
                return null;
            }
            return m1Var.c();
        }
    }

    public f0() {
        super("com.asus.msa.SupplementaryDID");
    }

    public b<m1, String> a() {
        return new a(this);
    }

    public Intent c(Context context) {
        Intent intent = new Intent();
        intent.setAction("com.asus.msa.action.ACCESS_DID");
        intent.setComponent(new ComponentName("com.asus.msa.SupplementaryDID", "com.asus.msa.SupplementaryDID.SupplementaryDIDService"));
        return intent;
    }
}
